import { request } from "../utils/reques";
export const apiGetBanner = () => {

    return request({
        url: '/homeBanner'
    })
}
export const apiGetDayRandom = () => {
    return request({
        url: '/randomWall'
    })
}
export const apiGetNotice = () => {
    return request({
        url: '/wallNewsList',
        data: {
            select: true,
        }
    })
}
export const apiGetClassify = (id) => {
    return request({
        url: '/classify',
        data: id === 1 ? { pageSize: 100, } : { select: true },
    })
}

export const apiGetClassList = (queryParams) => {
    return request({
        url: '/wallList',
        data: queryParams
    })
}

export const apiSendStar = (data = {}) => {
    return request({
        url: '/setupScore',
        data,
    })
}

export const apiWritePhoto = (data = {}) => {
    return request({
        url: '/downloadWall',
        data,
    })
}

export const apiDetailWall = (data = {}) => {
    return request({
        url: '/detailWall',
        data,
    })
}

export const apiUserInfo = (data = {}) => {
    return request({
        url: '/userInfo',
        data,
    })
}

export const apiDownOrScore = (data = {}) => {
    return request({
        url: '/userWallList',
        data,
    })
}
export const apiSearchWall = (data = {}) => {
    return request({
        url: '/searchWall',
        data,
    })
}

